package com.deyuanyun.pic.pig.controller.vo;

import com.deyuanyun.pic.common.util.DateUtil;
import com.deyuanyun.pic.common.util.StringUtils;

import java.math.BigDecimal;
import java.util.Date;

public class ToPigVO {
	//收球点Id
	private String id;
	//收球点名称
	private String pipeValName;
	//清管效果
	private String pigginGeffict;
	//收球筒编号
	private String pigNumber;
	//收球筒绝对距离
	private Double mileage;
	//发/收球筒最近参考点
	private String reference;
	//发/收球筒相对最近参考点距离
	private Double referencedistance;
	//平均速度（m/s）
	private Double avgSpeed;
	//收球筒gisid
	private String gisId;
	//收球时间
	private Date backBallsTime;
	//收球记录时间
	private Date recordTime;
	//发球到达人
	private String arriveUser;
	//收球筒跟踪人
	private String recrder;
	//收球筒发球出站压力
	private Double ballsPressureFrom;
	//收球筒收球进站压力
	private Double ballsPressureTo;
	//收球筒流量
	private Double ballsFlow;
	//清管器运行距离
	private Double pigRunLength;
	//收球筒最大推球压差
	private Double maxPushPressure;
	//收球筒污水量
	private Double sewage;
	//收球筒污物量
	private Double dirt;
	//收球筒清放空气量
	private Double ventGasVolume;
	//管道实际通过气量
	private Double actualPassGasVolume;
	//天然气相对密度
	private Double gasRelativedEnsity;
	//天然气平均温度
	private Double avgTempreture;
	//在平均压力下的压缩系数
	private Double compressionCoefficient;
	//收球筒过盈量
	private Double interference;
	//清管时间
	private String pagDate;
	//清管效率
	private Double pigginGefficiency;
	//收球筒清除物描述
	private String dirtdescRiption;
	//收球筒清管工具描述
	private String pigDescribe;
	//收球筒描述
	private String remark;
	//对应的收球记录ID
	private String backId;
	//是否通过 --通过为Y 未通过为N
	private String state;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getPipeValName() {
		return pipeValName;
	}

	public void setPipeValName(String pipeValName) {
		this.pipeValName = pipeValName;
	}

	public String getPigginGeffict() {
		return pigginGeffict;
	}

	public void setPigginGeffict(String pigginGeffict) {
		this.pigginGeffict = pigginGeffict;
	}

	public String getPigNumber() {
		return pigNumber;
	}

	public void setPigNumber(String pigNumber) {
		this.pigNumber = pigNumber;
	}

	public Double getMileage() {
		return mileage;
	}

	public void setMileage(Double mileage) {
		this.mileage = mileage;
	}

	public String getReference() {
		return reference;
	}

	public void setReference(String reference) {
		this.reference = reference;
	}

	public Double getReferencedistance() {
		return StringUtils.isNotNullEmpty(this.getReference())?referencedistance:null;
	}

	public void setReferencedistance(Double referencedistance) {
		this.referencedistance = referencedistance;
	}

	public Double getAvgRate() {
		return avgSpeed;
	}

	public void setAvgRate(Double avgSpeed) {
		this.avgSpeed = avgSpeed;
	}

	public String getGisId() {
		return gisId;
	}

	public void setGisId(String gisId) {
		this.gisId = gisId;
	}

	public Date getBackBallsTime() {
		return backBallsTime;
	}

	public void setBackBallsTime(Date backBallsTime) {
		this.backBallsTime = backBallsTime;
	}

	public Date getRecordTime() {
		return recordTime;
	}

	public void setRecordTime(Date recordTime) {
		this.recordTime = recordTime;
	}

	public String getArriveUser() {
		return arriveUser;
	}

	public void setArriveUser(String arriveUser) {
		this.arriveUser = arriveUser;
	}

	public String getRecrder() {
		return recrder;
	}

	public void setRecrder(String recrder) {
		this.recrder = recrder;
	}

	public Double getBallsPressureFrom() {
		return ballsPressureFrom;
	}

	public void setBallsPressureFrom(Double ballsPressureFrom) {
		this.ballsPressureFrom = ballsPressureFrom;
	}

	public Double getBallsPressureTo() {
		return ballsPressureTo;
	}

	public void setBallsPressureTo(Double ballsPressureTo) {
		this.ballsPressureTo = ballsPressureTo;
	}

	public Double getBallsFlow() {
		return ballsFlow;
	}

	public void setBallsFlow(Double ballsFlow) {
		this.ballsFlow = ballsFlow;
	}

	public Double getPigRunLength() {
		return pigRunLength;
	}

	public void setPigRunLength(Double pigRunLength) {
		this.pigRunLength = pigRunLength;
	}

	public Double getMaxPushPressure() {
		return maxPushPressure;
	}

	public void setMaxPushPressure(Double maxPushPressure) {
		this.maxPushPressure = maxPushPressure;
	}

	public Double getSewage() {
		return sewage;
	}

	public void setSewage(Double sewage) {
		this.sewage = sewage;
	}

	public Double getDirt() {
		return dirt;
	}

	public void setDirt(Double dirt) {
		this.dirt = dirt;
	}

	public Double getVentGasVolume() {
		return ventGasVolume;
	}

	public void setVentGasVolume(Double ventGasVolume) {
		this.ventGasVolume = ventGasVolume;
	}

	public Double getActualPassGasVolume() {
		return actualPassGasVolume;
	}

	public void setActualPassGasVolume(Double actualPassGasVolume) {
		this.actualPassGasVolume = actualPassGasVolume;
	}

	public Double getGasRelativedEnsity() {
		return gasRelativedEnsity;
	}

	public void setGasRelativedEnsity(Double gasRelativedEnsity) {
		this.gasRelativedEnsity = gasRelativedEnsity;
	}

	public Double getAvgTempreture() {
		return avgTempreture;
	}

	public void setAvgTempreture(Double avgTempreture) {
		this.avgTempreture = avgTempreture;
	}

	public Double getCompressionCoefficient() {
		return compressionCoefficient;
	}

	public void setCompressionCoefficient(Double compressionCoefficient) {
		this.compressionCoefficient = compressionCoefficient;
	}

	public Double getInterference() {
		return interference;
	}

	public void setInterference(Double interference) {
		this.interference = interference;
	}

	public String getPagDate() {
		return pagDate;
	}

	public void setPagDate(String pagDate) {
		this.pagDate = pagDate;
	}

	public Double getPigginGefficiency() {
		return pigginGefficiency;
	}

	public void setPigginGefficiency(Double pigginGefficiency) {
		this.pigginGefficiency = pigginGefficiency;
	}

	public String getDirtdescRiption() {
		return dirtdescRiption;
	}

	public void setDirtdescRiption(String dirtdescRiption) {
		this.dirtdescRiption = dirtdescRiption;
	}

	public String getPigDescribe() {
		return pigDescribe;
	}

	public void setPigDescribe(String pigDescribe) {
		this.pigDescribe = pigDescribe;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getBackId() {
		return backId;
	}

	public void setBackId(String backId) {
		this.backId = backId;
	}

	public String getState() {
		return DateUtil.isNotNull(this.backBallsTime) ? "Y" : "N";
	}
}
